set more off
clear all

global storage: env storage

# delimit
quietly infix 
	4 lines 
    1: float IHDP 1-4 
	2: int V14_18m 33-34 
	2: int V14a_18m 37 
	2: int V14b_18m 38 
	2: int V14c1_18m 39-40 
	2: int V14c2_18m 41 
	2: int V15b_18m 44 
	2: int V15c_18m 45-46 
	2: int V16_18m 47-48 
	2: int V16a_18m 51 
	2: int V16b_18m 52 
	2: int V16c1_18m 53-54 
	2: int V16c2_18m 55 
	2: int V17b_18m 58-59 
	2: int V17c_18m 60-61 
	2: int V19_18m 69-70 
	2: int V21_18m 75-76 
	3: int V27_18m 17 
	3: int V27b_18m 19-20 
	3: int V29a_18m 27 
	3: int V29b_18m 28 
    using "$storage/ece_parenting/ICPSR_09795_ASCII/DS0051/09795-0051-Data.txt", clear;
# delimit cr

lab var IHDP "IHDP Number" 
lab var V14_18m "Primary Caregiver"
lab var V14a_18m "Place of Care"
lab var V14b_18m "Days/Week-Other Place"
lab var V14c1_18m "Hours/Day-Other Place"
lab var V14c2_18m "It Varies"
lab var V15b_18m "Days/Week Daycare Center"
lab var V15c_18m "Hours/Day Daycare Center"
lab var V16_18m "Secondary Caregiver"
lab var V16a_18m "Place of Secondary Care"
lab var V16b_18m "Days/Week-Other Place"
lab var V16c1_18m "Hours/Day-Other Place"
lab var V16c2_18m "It Varies"
lab var V17b_18m "Days/Week Secondary Place"
lab var V17c_18m "Hours/Day Secondary Place"
lab var V19_18m "Hours/Weekday Mother with Child (Awake)"
lab var V21_18m "Hours/Weekend Day Mother w/ Child (Awake)"
lab var V27_18m "Currently Employed"
lab var V27b_18m "Hours/Week"
lab var V29a_18m "Enrolled School/Training"
lab var V29b_18m "Attending Classes Now"

// recode 1-Yes/2-No to 1-Yes/0-No
replace V27_18m = 0 if V27_18m == 2
replace V29a_18m = 0 if V29a_18m == 2
replace V29b_18m = 0 if V29b_18m == 2
